﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Media3D;

namespace WpfApp3d
{
    public class UnitEx
    {
       static double XUnit = 0.01;
       static int Decimals = 3;
        public static Point3 XFormat3(Point3D point)
        {
            return new Point3(
                Math.Round(point.X * XUnit, Decimals),
                Math.Round(point.Y * XUnit, Decimals),
                Math.Round(point.Z * XUnit, Decimals));
        }
        public static Point3 XFormat3(Point3 point)
        {
            return new Point3(
                Math.Round(point.X * XUnit, Decimals),
                Math.Round(point.Y * XUnit, Decimals),
                Math.Round(point.Z * XUnit, Decimals));
        }

    }
}
